<?php

if (! function_exists('hook_trigger'))
{
    function hook_trigger($event, $params = null, $once = false){
        return app("P_hook")->trigger($event,$params,$once);
    }
}

if (! function_exists('hook_event'))
{
    function hook_event(array $events){
        return app("P_hook")->listenEvents($events);
    }
}

if (! function_exists('hook_listener'))
{
    function hook_listener(){
        return app("P_hook")->getListener();
    }
}

if (! function_exists('hook_bind'))
{
    function hook_bind(){
        return app("P_hook")->getBind();
    }
}

?>
